﻿using OASystem.BLL.Service;
using OASystem.Model;
using OASystem.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace OASystem.Controllers
{
    public class ScheduleController : Controller
    {
      private  ScheduleService Service = new ScheduleService();
        public JsonResult Add(Schedule schedule)
        {
            Operate operate = new Operate();
            operate.Success = Service.Add(schedule);
            ViewBag.User = schedule;
            return Json(operate);
        }
    }
}